<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<style type="text/css">
table
{
width:100%;
}
th
{
font-family:"Arial";
font-size:x-small;
padding:15px;

}
td
{
font-family:"Arial";
font-size:x-small;
padding:15px;
}
</style>
<title>Filter Selection</title>
</head>
<body>
<jsp:include page="../banners/topbanner.jsp"/>

<c:choose>
	<c:when test="${defects=='notfound'}">
			<font face = "Arial" size="2" color="maroon"><c:out value="${defectsnotfound}"></c:out></font> 
	</c:when>

	<c:otherwise>
	<table>
	
			<tr>
				<th align="left"><c:out value="YEAR"></c:out></th>
				<th align="left"><c:out value="MONTH"></c:out></th>
				<th align="left"><c:out value="PROJECTCODE"></c:out></th>
				<th align="left"><c:out value="IMPACT"></c:out></th>
				<th align="left"><c:out value="STATUS"></c:out></th>
				<th align="left"><c:out value="SEVERITY"></c:out></th>
				<th align="left"><c:out value="PRIORITY"></c:out></th>
				<th align="left"><c:out value="TYPE"></c:out></th>
			</tr>
			
		<c:forEach var = "defects" items="${DEFECTSREPORT}">
			<tr>
				<td><c:out value="${defects.year}"></c:out></td>
				<td><c:out value="${defects.month}"></c:out></td>
				<td><c:out value="${defects.projectCode}"></c:out></td>
				<td><c:out value="${defects.impact}"></c:out></td>
				<td><c:out value="${defects.status}"></c:out></td>
				<td><c:out value="${defects.severity}"></c:out></td>
				<td><c:out value="${defects.priority}"></c:out></td>
				<td><c:out value="${defects.type}"></c:out></td>
			</tr>
		</c:forEach>		
	</table>
	
</c:otherwise>
</c:choose>


</body>
</html>
	